package com.esd.db.model;

import java.util.Date;

/**
 * 支付宝支付信息
 */
public class AlipayInfo {
	private String alipayId; 				//主键id 存入salary表中
	private String alipayReturnCode;   		//返回码 对应支付宝文档的code
	private String alipayReturnMsg;			//返回信息	 对应支付宝文档的msg
	private String orderId;					//支付宝转账单据号，成功一定返回，失败可能不返回也可能返回。	
	private String outBizNo;				//商户转账唯一订单号。发起转账来源方定义的转账单据ID，用于将转账回执通知给来源方。 不同来源方给出的ID可以重复，同一个来源方必须保证其ID的唯一性。 只支持半角英文、数字，及“-”、“_”。						
	private String payDate;					//支付时间：格式为yyyy-MM-dd HH:mm:ss，仅转账成功返回。
	private String subCode;					//业务返回码	
	private String subMsg;					//业务返回码描述	
	private String payerRealName;			//付款方真实姓名（最长支持100个英文/50个汉字）。 如果本参数不为空，则会校验该账户在支付宝登记的实名是否与付款方真实姓名一致。
	private String payeeRealName;			//收款方真实姓名（最长支持100个英文/50个汉字）。 如果本参数不为空，则会校验该账户在支付宝登记的实名是否与收款方真实姓名一致。		
	private String payeeAccount;			//收款方账户。付款方和收款方不能是同一个账户。	
	private double amount;					//转账金额，单位：元。 只支持2位小数，小数点前最大支持13位，金额必须大于0。	单次最低转账0.1元。	
	private boolean isSuccess;              //转账是否成功
	private int workerId;  					//工作者id
	private Date createDate;
	
	public AlipayInfo() {
		
	}

	public String getAlipayId() {
		return alipayId;
	}

	public void setAlipayId(String alipayId) {
		this.alipayId = alipayId;
	}

	public String getAlipayReturnCode() {
		return alipayReturnCode;
	}

	public void setAlipayReturnCode(String alipayReturnCode) {
		this.alipayReturnCode = alipayReturnCode;
	}

	public String getAlipayReturnMsg() {
		return alipayReturnMsg;
	}

	public void setAlipayReturnMsg(String alipayReturnMsg) {
		this.alipayReturnMsg = alipayReturnMsg;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getOutBizNo() {
		return outBizNo;
	}

	public void setOutBizNo(String outBizNo) {
		this.outBizNo = outBizNo;
	}

	public String getPayDate() {
		return payDate;
	}

	public void setPayDate(String payDate) {
		this.payDate = payDate;
	}

	public String getSubCode() {
		return subCode;
	}

	public void setSubCode(String subCode) {
		this.subCode = subCode;
	}

	public String getSubMsg() {
		return subMsg;
	}

	public void setSubMsg(String subMsg) {
		this.subMsg = subMsg;
	}

	public String getPayerRealName() {
		return payerRealName;
	}

	public void setPayerRealName(String payerRealName) {
		this.payerRealName = payerRealName;
	}

	public String getPayeeRealName() {
		return payeeRealName;
	}

	public void setPayeeRealName(String payeeRealName) {
		this.payeeRealName = payeeRealName;
	}

	public String getPayeeAccount() {
		return payeeAccount;
	}

	public void setPayeeAccount(String payeeAccount) {
		this.payeeAccount = payeeAccount;
	}

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public boolean getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}

	public int getWorkerId() {
		return workerId;
	}

	public void setWorkerId(int workerId) {
		this.workerId = workerId;
	}
	
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	public String toString() {
		return "AlipayInfo [alipayId=" + alipayId + ", alipayReturnCode="
				+ alipayReturnCode + ", alipayReturnMsg=" + alipayReturnMsg
				+ ", orderId=" + orderId + ", outBizNo=" + outBizNo
				+ ", payDate=" + payDate + ", subCode=" + subCode + ", subMsg="
				+ subMsg + ", payerRealName=" + payerRealName
				+ ", payeeRealName=" + payeeRealName + ", payeeAccount="
				+ payeeAccount + ", amount=" + amount + ", isSuccess="
				+ isSuccess + ", workerId=" + workerId + ", createDate="
				+ createDate + "]";
	}
}
